<?php

include('../include/api.php');
require_once ($siteLocalPath."/gateway/clickatell/class.clickatell.php");
require_once ($siteLocalPath."/classes/class.member.php");
include($siteLocalPath."/classes/class.page.php");

// Load page object
$skypage=new SkyPage();
$skypage->tamplate="msg.htm";
$skypage->groups="member";
$skypage->leftMenuName="lmenu.htm";


// Load member object
$member=new Member();
$mdata=$member->find("member_ID='".$_SESSION['S_memberID']."'");
$smarty->assign("memberData",$mdata[0]);

$mysms = new Clickatell();
$total=$mysms->getbalance();

$skypage->msgTitle="GateWay left Points are : ".$total;
//$skypage->msgText=$Q['smsLeftCredits'].$newData[credits];

$smarty->assign("memberData",$mdata[0]);

$skypage->show($smarty);

?>
